cmake_minimum_required(VERSION 3.4)

set(COMMON_LIB_NAME Common)
set(COMMON_LIB_NAME ${COMMON_LIB_NAME} PARENT_SCOPE)

add_library(${COMMON_LIB_NAME} STATIC
    Camera.cpp
    Camera.h
    DDSTextureLoader.cpp
    DDSTextureLoader.h
    GameTimer.cpp
    GameTimer.h
    GeometryGenerator.cpp
    GeometryGenerator.h
    LightHelper.cpp
    LightHelper.h
    MathHelper.cpp
    MathHelper.h
    # TextureMgr.cpp
    # TextureMgr.h
    Waves.cpp
    Waves.h
    d3dApp.cpp
    d3dApp.h
    d3dApp2.cpp
    d3dApp2.h
    d3dUtil.cpp
    d3dUtil.h
    d3dx11effect.h
    dxerr.cpp
    dxerr.h
    xnacollision.cpp
    xnacollision.h
    )

set_target_properties(${COMMON_LIB_NAME} PROPERTIES
    STATIC_LINKER_FLAGS /ignore:4221
    )
